from flask import Flask, Blueprint

from applications.view.supplier.raw import  bp as raw_bp
from applications.view.supplier.auxiliary import bp as aux_bp
from applications.view.supplier.packaging import bp as pack_bp
# 创建sys
supplier_bp = Blueprint('supplier', __name__, url_prefix='/supplier')


def register_supplier_bps(app: Flask):
    # 在admin_bp下注册子蓝图
    supplier_bp.register_blueprint(raw_bp)
    supplier_bp.register_blueprint(aux_bp)
    supplier_bp.register_blueprint(pack_bp)


    app.register_blueprint(supplier_bp)